package com.egg.gateway.constant;

/**
 * @author east
 * @describe 过滤ORDER参数 值越小，越优先
 */
public interface FilterOrderConstant {


    /**
     * 黑名单 ORDER
     */
    int BLACK_FILTER_ORDER = 0;

    /**
     * 上下文 ORDER
     */
    int CONTEXT_FILTER_ORDER = BLACK_FILTER_ORDER + 1;

    /**
     * 权限 ORDER
     */
    int AUTH_FILTER_ORDER = CONTEXT_FILTER_ORDER + 1;

    /**
     * XSS ORDER
     */
    int XSS_FILTER_ORDER = AUTH_FILTER_ORDER + 1;

    /**
     * 日志 ORDER
     */
    int LOG_FILTER_ORDER = 10098;

    /**
     * HTTPS转HTTP ORDER
     * LoadBalancerClientFilter的order是10100
     * 要在LoadBalancerClientFilter执行之前将HTTPS修改为HTTP，则这里的order设置为10099
     */
    int HTTPS_TO_HTTP_FILTER_ORDER = 10099;


}
